package cn.edu.neu.softlab633.influencemaximization.sy.bean.HighDegree;

/**
 * Created by Jason on 2017/5/20.
 */
public class HighDegreeEle implements Comparable<HighDegreeEle>{
    private int id;
    private int outdegree;

    public HighDegreeEle(int id, int outdegree) {
        this.id = id;
        this.outdegree = outdegree;
    }

    public HighDegreeEle() {

    }

    public void setId(int id) {
        this.id = id;
    }

    public void setOutdegree(int outdegree) {
        this.outdegree = outdegree;
    }

    public int getId() {

        return id;
    }

    public int getOutdegree() {
        return outdegree;
    }

    @Override
    public int compareTo(HighDegreeEle o) {
        if (this.getOutdegree() > o.getOutdegree()) {
            return -1;
        }
        return 1;
    }
}
